﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MoodleDesktop
{
    public partial class MonHoc : UserControl
    {
        public MonHoc()
        {
            InitializeComponent();
        }

        public delegate void onUserClick(object sender, EventArgs e);

        public onUserClick mySender;

        private void MonHoc_MouseEnter(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.open_source;
        }

        private void MonHoc_MouseHover(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.open_source;
        }

        private void MonHoc_MouseLeave(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.monhoc;
        }

        

        private void icon_DoubleClick(object sender, EventArgs e)
        {
            this.mySender(sender, e);
        }

        private void txt_TenMonHoc_MouseEnter(object sender, EventArgs e)
        {
            MonHoc_MouseEnter(sender, e);
        }



        private void txt_TenMonHoc_MouseHover(object sender, EventArgs e)
        {
            MonHoc_MouseHover(sender, e);
        }

        private void txt_TenMonHoc_MouseLeave(object sender, EventArgs e)
        {
            MonHoc_MouseLeave(sender, e);
        }

        private void icon_MouseEnter(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.open_source;
        }

        private void icon_MouseHover(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.open_source;
        }

        private void icon_MouseLeave(object sender, EventArgs e)
        {
            this.icon.Image = Resource1.monhoc;
        }

        private void txt_TenMonHoc_Click(object sender, EventArgs e)
        {
            this.mySender(sender, e); 
        }

        private void icon_Click(object sender, EventArgs e)
        {
            this.mySender(sender, e); 
        }

        
    }
}
